from fastapi import APIRouter

# 导入路由模块
from .auth import router as auth_router
from .knowledge import router as knowledge_router

# 创建并配置API路由器
api_router = APIRouter()

# 注册认证路由（无前缀，保持与前端兼容）
api_router.include_router(auth_router, tags=["authentication"])

# 注册知识管理路由
api_router.include_router(knowledge_router, prefix="/knowledge", tags=["Knowledge"])